package com.lfd.validated.pojo;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @项目名： spring-emq
 * @包名： com.lfd.validated.pojo
 * @文件名: User
 * @创建者: liufudong@szyh-smart.com
 * @创建时间: 2024/10/2 21:38
 * @描述：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 2, max = 20, message = "")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;


}
